package com.yunhe.inspect.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunhe.inspect.domain.DataInspectOrderItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: RectifyReformBO
 * @Description:
 * @author: GongDaCheng
 * @Date: 10:04 2021/11/15
 */
@Data
@ApiModel("开具整改单入参")
public class RectifyReformBO implements Serializable {

    private static final long serialVersionUID = -4282655538725238497L;

    @ApiModelProperty("巡检单id")
    private int inspectOrderId;

    @ApiModelProperty("安全隐患")
    private String hiddenDanger;

    @ApiModelProperty("整改截止日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rectificationDeadline;

    @ApiModelProperty("状态(评审->复审：01 复审->复审：02)")
    private String status;

    @ApiModelProperty("检查项目（状态01必填 02 为空）")
    private List<DataInspectOrderItem> inspectItems;

    @ApiModelProperty("受检人签字（状态01必填 02 为空）")
    private String inspectedPersonSignature;

    @ApiModelProperty("复审意见")
    private String reviewContent;

}
